<template>
	<view class="container">
		<u-parse :html="url"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			};
		},
		onLoad() {
			this.$net.req('/config/getConfigByKey', {key: 'enter_wechat_group'}, false).then(res => {
				if (res.code == 200) {
					res.data.value = res.data.value.replace(/<img/g, '<img style="width:100%"');
					this.url = res.data.value
				}
			})
		}
	}
</script>

<style lang="scss">
	.container{
		margin: 30rpx;
	}
</style>
